<script>
$(function(){
	$('#searchtype').val(INPUT_GET.searchtype);
    $('#keyword').val(INPUT_GET.keyword);
});
</script>
<div class="t_2">
     <div class="fl">报修信息列表</div>
     <div class="fr add_form"><a href="?app=baoxiu&mod=add" id="add_table">+添加报修信息</a></div>
</div>
<div class="search">
    <form id='search'>
        <span>
            <select name="searchtype" id="searchtype" class="select1">
                <option>请选择查询类型</option>
                <option value="username">客户用户名</option>
                <option value="type">类型</option>
            </select>
        </span>

        <span>
            <input type="text" name="keyword" id="keyword" value="" />
        </span>

        <span><input type="submit" value="搜索" /><?php echo showhide(array('app'=>APP,'mod'=>MOD)); ?></span>
    </form>
</div>
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0" rel="bid">编号</th>
            <th class="th0">客户</th>
            <th class="th0">标题</th>
            <th class="th1" rel="">发布时间</th>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->lists as $list): ?> 
       <tr>
            <td><?php echo $list['bid']; ?></td>
            <td><?php echo $list['customer_name']; ?></td>
            <td><?php echo $list['title']; ?></td>
            <td><?php echo date('Y-m-d H:i:s',$list['created_time']); ?></td>
            <td>
            <?php if($this->type=='audit'): ?>
				<?php echo opt('view','?app='.APP.'&mod='. MOD .'&bid='.$list['bid'], ' title ="审核" '); ?>
            <?php else: ?>
            	<?php echo opt('view','?app='.APP.'&mod=view&bid='.$list['bid'], ' title ="浏览" '); ?>
            	<?//php echo opt('edit','?app='.APP.'&mod=edit&bid='.$list['bid'], ' title ="编辑" '); ?>
            <?php endif; ?>
            </td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>